#include "drv_led.h"
#include "led.h"

void BrdLed_Blink(void)
{
    Led *brdLed = GetBoardLed();
    for (int i = 0; i < 4; i++) {
        brdLed->switchLed(brdLed);
        Delay_ms(100);
    }
}

void BrdLed_Switch(void)
{
    Led *brdLed = GetBoardLed();
    brdLed->switchLed(brdLed);
}

void BrdLed_On(void)
{
    Led *brdLed = GetBoardLed();
    brdLed->setStatus(brdLed, true);
}

void BrdLed_Off(void)
{
    Led *brdLed = GetBoardLed();
    brdLed->setStatus(brdLed, false);
}